<?php
session_start();
if(!$this->session->userdata('username')){
    redirect(base_url(),'refresh');
}else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Kuesioner Pelayanan</title>
    <meta name="author" content="SuggeElson" />
    <meta name="description" content="Supr admin template - new premium responsive admin template. This template is designed to help you build the site administration without losing valuable time.Template contains all the important functions which must have one backend system.Build on great twitter boostrap framework" />
    <meta name="keywords" content="admin, admin template, admin theme, responsive, responsive admin, responsive admin template, responsive theme, themeforest, 960 grid system, grid, grid theme, liquid, masonry, jquery, administration, administration template, administration theme, mobile, touch , responsive layout, boostrap, twitter boostrap" />
    <meta name="application-name" content="Supr admin template" />

    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- Force IE9 to render in normal mode -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- Le styles -->
    <!-- Use new way for google web fonts
    http://www.smashingmagazine.com/2012/07/11/avoiding-faux-weights-styles-google-web-fonts -->
    <!-- Headings -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
    <!-- Text -->
    <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' />

    <!-- Core stylesheets do not remove -->
    <link id="bootstrap" href="<?php echo $this->config->item('css_path');?>bootstrap/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->config->item('css_path');?>bootstrap/bootstrap-theme.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->config->item('css_path');?>supr-theme/jquery.ui.supr.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo $this->config->item('css_path');?>icons.css" rel="stylesheet" type="text/css" />

    <!-- Plugins stylesheets -->
    <link href="<?php echo $this->config->item('plugin_path');?>misc/qtip/jquery.qtip.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch.css" type="text/css" rel="stylesheet" />
    <link href="<?php echo $this->config->item('plugin_path');?>forms/uniform/uniform.default.css" type="text/css" rel="stylesheet" />
	<link href="<?php echo $this->config->item('plugin_path');?>forms/togglebutton/toggle-buttons.css" type="text/css" rel="stylesheet" />

    <!-- Main stylesheets -->
    <link href="<?php echo $this->config->item('css_path');?>main.css" rel="stylesheet" type="text/css" />

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="<?php echo $this->config->item('images_path');?>favicon.ico" />
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $this->config->item('images_path');?>apple-touch-icon-144-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $this->config->item('images_path');?>apple-touch-icon-114-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $this->config->item('images_path');?>apple-touch-icon-72-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" href="<?php echo $this->config->item('images_path');?>apple-touch-icon-57-precomposed.png" />

    <!-- Windows8 touch icon ( http://www.buildmypinnedsite.com/ )-->
    <meta name="application-name" content="Supr"/>
    <meta name="msapplication-TileColor" content="#3399cc"/>

    <!-- Load modernizr first -->
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>libs/modernizr.js"></script>
    <!-- Le javascript
    ================================================== -->
    <!-- Important plugins put in all pages -->
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>jquery-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>bootstrap/bootstrap.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>jquery.mousewheel.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>libs/jRespond.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>supr-theme/jquery-ui-timepicker-addon.js"></script>

    <!-- Charts plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>charts/sparkline/jquery.sparkline.min.js"></script><!-- Sparkline plugin -->

    <!-- Misc plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/qtip/jquery.qtip.min.js"></script><!-- Custom tooltip plugin -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/totop/jquery.ui.totop.min.js"></script> <!-- Back to top plugin -->

    <!-- Search plugin -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch_set.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch_data.js"></script><!-- JSON for searched results -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch.js"></script>

    <!-- Form plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/uniform/jquery.uniform.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/validate/jquery.validate.min.js"></script>
	<script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/maskedinput/jquery.maskedinput-1.3.min.js"></script>
	<script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/togglebutton/jquery.toggle.buttons.js"></script>
	<script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/select/select2.min.js"></script>	
	
    <!-- Init plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>main.js"></script><!-- Core js functions -->
    <!--<script type="text/javascript" src="<?php //echo $this->config->item('js_path');?>dashboard.js"></script><!-- Init plugins only for page -->
    </head>

    <body>

    <div id="header">
        <nav class="navbar navbar-default" role="navigation">
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-left usernav">
                    <?php if ( isset($menu) && $menu == "admin" ) { ?>
                    <li><a href="<?php echo site_url("login/logout"); ?>"><span class="icon16 icomoon-icon-exit"></span><span class="txt"> Logout</span></a></li>
                    <?php } elseif ( isset($menu) && $menu == "responden" ) { ?>
                        <!-- #kosongan -->
                    <?php } else { ?>
                    <li><a href="<?php echo site_url("login"); ?>"><span class="icon16 icomoon-icon-exit"></span><span class="txt"> Login sebagai Admin </span></a></li>
                    <?php } ?>
                </ul>
            </div>
        </nav>
    </div>


    <div id="wrapper">
        
            <!--Responsive navigation button-->
            <div class="resBtn">
                <a href="#"><span class="icon16 minia-icon-list-3"></span></a>
            </div>

            <!--Sidebar collapse button-->
            <div class="collapseBtn leftbar">
                 <a href="#" class="tipR" title="Hide sidebar"><span class="icon12 minia-icon-layout"></span></a>
            </div>

            <!--Sidebar background-->
            <div id="sidebarbg"></div>

            <!--Sidebar content-->
            <div id="sidebar">
                <div class="shortcuts">
                    <ul>
                        <?php if($this->session->userdata("username") == "admin"){?>
							<li><a href="<?php echo site_url("master_responden"); ?>" title="Master Responden" class="tip"><span class="icon24 icomoon-icon-list"></span></a></li>
							<li><a href="<?php echo site_url("tindak_lanjut");?>" title="Tindak Lanjut" class="tip"><span class="icon24 icomoon-icon-download"></span></a></li>
							<li><a href="<?php echo site_url("report/r_global");?>" title="Report" class="tip"><span class="icon24 icomoon-icon-library"></span></a></li>
						<?php }elseif($this->session->userdata("username") == "teknisi"){?>
							<li><a href="<?php echo site_url('history_trouble/grid_history_trouble');?>" class="tip" title="Beranda"><span class="icon24 icomoon-icon-home-3"></span></a></li>
						<?php }elseif($this->session->userdata("username") == "instansi"){?>
							<li><a href="<?php echo site_url('pengaduan_saran/grid_dari_pemohon');?>" class="tip" title="Beranda"><span class="icon24 icomoon-icon-home-3"></span></a></li>
						<?php }?>
                    </ul>
                </div><!-- End search -->

                <div class="sidenav">
                    <div class="sidebar-widget" style="margin: -1px 0 0 0;">
                        <h5 class="title" style="margin-bottom:0">Menu Navigasi</h5>
                    </div><!-- End .sidenav-widget -->

                    <div class="mainnav">
                        <?php $this->load->view('menu');?>
                    </div>
                </div><!-- End sidenav -->
            </div><!-- End #sidebar -->

            <!--Body content-->
            <div id="content" class="clearfix">
                <div class="contentwrapper"><!--Content wrapper-->
					<div class="heading">
                    <div class="heading">
                        <h3><!--Tulisan Judul--></h3>
                    </div><!-- End .heading-->

                    <?php echo $content; ?>

                    <div class="row">
                        <div class="col-lg-1">
                        </div>
                        <div class="col-lg-10">
                            <div class="alert alert-info">
                                <marquee behavior="scroll" direction="left" style="font-size: 20px;">
                                    <img src="<?php echo $this->config->item('images_path');?>pemkot_logo.jpg" width="32" height="32"> &nbsp; <strong>UPTSA</strong> &nbsp; <img src="<?php echo $this->config->item('images_path');?>pemkot_logo.jpg" width="32" height="32"> &nbsp; <strong>VISI</strong> Melaksanakan Pelayanan Prima Dengan Cerdas Bagi Publik &nbsp; <img src="<?php echo $this->config->item('images_path');?>pemkot_logo.jpg" width="32" height="32"> &nbsp; <strong>MISI</strong> 1. Melaksanakan Tertib Administrasi &nbsp; 2. Meningkatkan kualitas Sarana & Prasarana UPTSA Surabaya Timur &nbsp; 3. Mengembangkan pelayanan berbasis Informasi Teknologi &nbsp; 4. Meningkatkan kualitas SDM Petugas UPTSA Surabaya &nbsp; <img src="<?php echo $this->config->item('images_path');?>pemkot_logo.jpg" width="32" height="32"> &nbsp; <strong>UPTSA</strong> &nbsp; <img src="<?php echo $this->config->item('images_path');?>pemkot_logo.jpg" width="32" height="32"> &nbsp;
                                </marquee>
                            </div>
                        </div>
                        <div class="col-lg-1">
                        </div>
                    </div>

                </div><!-- End contentwrapper -->
            </div><!-- End #content -->

    </div><!-- End #wrapper -->

    </body>
</html>
<?php }?>